#include <stdio.h>
int count(char *p){
	int count = 0;
	for( ; *p; count++,p++);
	return count;
}

int main(void){
	char input[80];
	char* p = input;
	printf("请输入字符串："); 
	gets(input);
	printf("字符串长度为%d",count(input));
} 
